package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInAccountingQueryBcInvoiceMapper;
import com.ims.core.doc.domain.TInAccountingQueryBcInvoice;
import com.ims.core.doc.service.ITInAccountingQueryBcInvoiceService;

/**
 * 区块链发票报账单查询Service业务层处理
 *
 * @author IMS
 * @date 2024-12-03
 */
@Service
public class TInAccountingQueryBcInvoiceServiceImpl implements ITInAccountingQueryBcInvoiceService
{
    @Autowired
    private TInAccountingQueryBcInvoiceMapper tInAccountingQueryBcInvoiceMapper;

    /**
     * 查询区块链发票报账单查询
     *
     * @param id 区块链发票报账单查询主键
     * @return 区块链发票报账单查询
     */
    @Override
    public TInAccountingQueryBcInvoice selectTInAccountingQueryBcInvoiceById(Long id)
    {
        return tInAccountingQueryBcInvoiceMapper.selectTInAccountingQueryBcInvoiceById(id);
    }

    /**
     * 查询区块链发票报账单查询列表
     *
     * @param tInAccountingQueryBcInvoice 区块链发票报账单查询
     * @return 区块链发票报账单查询
     */
    @Override
    public List<TInAccountingQueryBcInvoice> selectTInAccountingQueryBcInvoiceList(TInAccountingQueryBcInvoice tInAccountingQueryBcInvoice)
    {
        return tInAccountingQueryBcInvoiceMapper.selectTInAccountingQueryBcInvoiceList(tInAccountingQueryBcInvoice);
    }

    /**
     * 新增区块链发票报账单查询
     *
     * @param tInAccountingQueryBcInvoice 区块链发票报账单查询
     * @return 结果
     */
    @Override
    public int insertTInAccountingQueryBcInvoice(TInAccountingQueryBcInvoice tInAccountingQueryBcInvoice)
    {
        tInAccountingQueryBcInvoice.setCreateTime(DateUtils.getNowDate());
        return tInAccountingQueryBcInvoiceMapper.insertTInAccountingQueryBcInvoice(tInAccountingQueryBcInvoice);
    }

    /**
     * 修改区块链发票报账单查询
     *
     * @param tInAccountingQueryBcInvoice 区块链发票报账单查询
     * @return 结果
     */
    @Override
    public int updateTInAccountingQueryBcInvoice(TInAccountingQueryBcInvoice tInAccountingQueryBcInvoice)
    {
        tInAccountingQueryBcInvoice.setUpdateTime(DateUtils.getNowDate());
        return tInAccountingQueryBcInvoiceMapper.updateTInAccountingQueryBcInvoice(tInAccountingQueryBcInvoice);
    }

    /**
     * 批量删除区块链发票报账单查询
     *
     * @param ids 需要删除的区块链发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryBcInvoiceByIds(Long[] ids)
    {
        return tInAccountingQueryBcInvoiceMapper.deleteTInAccountingQueryBcInvoiceByIds(ids);
    }

    /**
     * 删除区块链发票报账单查询信息
     *
     * @param id 区块链发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryBcInvoiceById(Long id)
    {
        return tInAccountingQueryBcInvoiceMapper.deleteTInAccountingQueryBcInvoiceById(id);
    }
}
